using System.IO;
using SolutionFactory.Services;

namespace SolutionFactory_console
{
	public class TokenReplacerFileVisitor : IFileVisitor
	{
		private readonly FileTokenReplacer _replacer;

		public TokenReplacerFileVisitor(FileTokenReplacer replacer)
		{
			_replacer = replacer;
		}

		public void Visit(FileInfo file)
		{
			_replacer.Replace(file.FullName);
		}
	}
}